package com.xsz.order.service;

import com.xsz.common.service.IService;
import com.xsz.order.domain.CreateOrderForm;
import com.xsz.order.domain.QueryOrderForm;
import com.xsz.order.entity.Order;

import java.util.List;

/**
 * @author zsj55
 */
public interface OrderService extends IService<Order> {

    /**
     * 根据前端传值添加相应订单记录
     * @param createOrderForm
     */
    int createOrderByCreateOrderForm(CreateOrderForm createOrderForm);

    /**
     * 根据前端传值查询相应记录
     * @param queryOrderForm 查询form
     * @return
     */
    List<Order> getOrderByQueryOrderForm(QueryOrderForm queryOrderForm);

    /**
     * 根据订单ID查找相应记录
     * @param orderId 订单ID
     * @return
     */
    Order getOrderById(String orderId);
}
